import request from '@/utils/request'

export function add(data) {
  return request({
    url: '/flow',
    method: 'post',
    data
  })
}

export function getFlow(params) {
  return request({
    url: '/flow',
    method: 'get',
    params
  })
}

export function matchTest(params) {
  return request({
    url: '/flow/match/test',
    method: 'get',
    params
  })
}

export default { add, getFlow, matchTest }
